<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui, viewport-fit=cover">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>My App</title>
    <link rel="stylesheet" href="../../packages/core/css/framework7.min.css">
    <link rel="stylesheet" href="../../css/framework7-icons.css">
  </head>
  <body>
    <div id="app">
      <div class="view view-main view-init">
        <div class="page">
          <div class="navbar">
            <div class="navbar-inner">
              <div class="left"></div>
              <div class="title">Tooltip</div><div class="right">
<a href="#" class="link navbar-tooltip">
<i class="icon f7-icons if-ios">info</i>
<i class="icon material-icons if-md">info_outline</i>
</a>
</div>
            </div>
          </div>
          <div class="page-content"><div class="block block-strong">
<p>Tooltips display informative text when users hover over, or tap an target element.</p>
<p>Tooltip can be positioned around any element with any HTML content inside.</p>
</div>
<div class="block block-strong">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec lacinia augue urna, in tincidunt augue hendrerit ut. In nulla massa, facilisis non consectetur a, tempus semper ex. Proin eget volutpat nisl. Integer lacinia maximus nunc molestie viverra. <i class="icon f7-icons color-blue icon-tooltip if-ios">info_fill</i><i class="icon material-icons color-blue icon-tooltip if-md">info</i> Etiam ullamcorper ultricies ipsum, ut congue tortor rutrum at. Vestibulum rutrum risus a orci dictum, in placerat leo finibus. Sed a congue enim, ut dictum felis. Aliquam erat volutpat. Etiam id nisi in magna egestas malesuada. Sed vitae orci sollicitudin, accumsan nisi a, bibendum felis. Maecenas risus libero, gravida ut tincidunt auctor, <i class="icon f7-icons color-blue icon-tooltip if-ios">info_fill</i><i class="icon material-icons color-blue icon-tooltip if-md">info</i> aliquam non lectus. Nam laoreet turpis erat, eget bibendum leo suscipit nec.</p>
<p>Vestibulum <i class="icon f7-icons color-blue icon-tooltip if-ios">info_fill</i><i class="icon material-icons color-blue icon-tooltip if-md">info</i> gravida dui magna, eget pulvinar ligula molestie hendrerit. Mauris vitae facilisis justo. Nam velit mi, pharetra sit amet luctus quis, consectetur a tellus. Maecenas ac magna sit amet eros aliquam rhoncus. Ut dapibus vehicula lectus, ac blandit felis ultricies at. In sollicitudin, lorem eget volutpat viverra, magna <i class="icon f7-icons color-blue icon-tooltip if-ios">info_fill</i><i class="icon material-icons color-blue icon-tooltip if-md">info</i> felis tempus nisl, porta consectetur nunc neque eget risus. Phasellus vestibulum leo at ante ornare, vel congue justo tincidunt.</p>
<p>Praesent tempus enim id lectus porta, at rutrum purus imperdiet. Donec eget sem vulputate, scelerisque diam nec, consequat turpis. Ut vel convallis felis. Integer <i class="icon f7-icons color-blue icon-tooltip if-ios">info_fill</i><i class="icon material-icons color-blue icon-tooltip if-md">info</i> neque ex, sollicitudin vitae magna eget, ultrices volutpat dui. Sed placerat odio hendrerit consequat lobortis. Fusce pulvinar facilisis rhoncus. Sed erat ipsum, consequat molestie suscipit vitae, malesuada a <i class="icon f7-icons color-blue icon-tooltip if-ios">info_fill</i><i class="icon material-icons color-blue icon-tooltip if-md">info</i> massa.</p>
</div>
<div class="block-title">Auto Initialization</div>
<div class="block block-strong">
<p>For simple cases when you don't need a lot of control over the Tooltip, it can be initialized automatically with <code>tooltip-init</code> class and <code>data-tooltip</code> attribute: <a style="display: inline-block" class="button button-round button-outline button-small tooltip-init" data-tooltip="Button tooltip text">Button with Tooltip</a></p>
</div>
          </div>
        </div>
      </div>
    </div>
    <script type="text/javascript" src="../../packages/core/js/framework7.min.js"></script>
    <script>
      var theme = 'ios';
      if (location.href.indexOf('theme=md') >= 0) theme = 'md';
      var plugin = {
        params: {
          theme: theme,
          root: '#app',
        }
      };
      if (Framework7.use) Framework7.use(plugin);
      else if (Framework7.Class && Framework7.Class.use) Framework7.Class.use(plugin);
      
    </script>
    <script>
      var app = new Framework7();
      
      var $$ = Dom7;
      
      var iconTooltip = app.tooltip.create({
        targetEl: '.icon-tooltip',
        text: 'Tooltip text',
      });
      
      var navbarTooltip = app.tooltip.create({
        targetEl: '.navbar-tooltip',
        text: 'One more tooltip<br>with more text<br><em>and custom formatting</em>'
      });
    </script>
  </body>
</html>